package com.ynet.middleground.contract.bean;

import java.io.Serializable;
import java.util.Date;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

/**
 * @author daigaole
 * @description 档案列表
 * @date 2019-11-13 23:27
 */
@Data
@ApiModel(value = "新建档案列表", description = "新建档案列表")
public class ContractArchive implements Serializable {

    private static final long serialVersionUID = -5741165148766915966L;

    /**
     * 合约 id
     */
    @ApiModelProperty(value = "合约 id", notes = "合约 id", required = true, dataType = "Integer")
    @NotNull(message = "合约 id不能为空")
    private Integer contractId;

    /**
     * 文件名
     */
    @ApiModelProperty(value = "文件名", notes = "文件名", required = true, dataType = "String")
    @NotBlank(message = "文件名不能为空")
    private String name;

    /**
     * 地址
     */
    @ApiModelProperty(value = "地址", notes = "地址", required = true, dataType = "String")
    @NotBlank(message = "地址不能为空")
    private String url;

    /**
     * 渠道：C01-小贷，C02-保理，C03-青港易付，C04-财务信贷平台，C05-中台内管
     */
    @ApiModelProperty(value = "渠道：C01-小贷，C02-保理，C03-青港易付，C04-财务信贷平台，C05-中台内管",
        notes = "渠道：C01-小贷，C02-保理，C03-青港易付，C04-财务信贷平台，C05-中台内管", required = true, dataType = "String")
    @NotBlank(message = "渠道不能为空")
    private String channel;

    /**
     * 提交时间
     */
    @ApiModelProperty(value = "提交时间", notes = "提交时间", required = false, dataType = "Date")
    private Date gmtSubmission;

    /**
     * 档案类型：01-附件，02-文件，03-报告，04-财务报表，00-其他
     */
    /*@ApiModelProperty(value = "档案类型：01-附件，02-文件，03-报告，04-财务报表，00-其他", notes = "合约类型", required = true)
    @NotBlank(message = "档案类型不能为空")
    @Size(max = 2, min = 2, message = "长度为2")
    private String archiveType;*/
}
